import Cookies from 'js-cookie'

const nameKey = 'easy-name'

export function getTokenKey() {
  return Cookies.get(nameKey)
}

export function setTokenKey(token) {
  return Cookies.set(nameKey, token)
}

export function removeTokenKey() {
  return Cookies.remove(nameKey)
}

export function getToken(key) {
  return Cookies.get(key)
}

export function setToken(key, token) {
  return Cookies.set(key, token)
}

export function removeToken(key) {
  return Cookies.remove(key)
}
